<?php
use common\service\StaticService;
use common\service\GlobalUrlService;
use backend\assets\AdminAsset;

StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/backend/banner/banner.js'),AdminAsset::class);
?>

<div class="layui-card">
    <div class="layui-card-header">banner列表</div>
    <div class="layui-card-body">
        <div class="layui-form-item">
            <div class="layui-inline">
                <a href="<?= GlobalUrlService::buildAdminUrl('banner/banner-add')?>" class="layui-btn layui-btn-normal addNews_btn ">添加banner</a>
            </div>
        </div>
        <div class="layui-form-item">
            <table class="layui-hide" id="banner"  lay-filter="barDemo"></table>        
        </div>
    </div>
</div>

<script type="text/html" id="header">
    <img class="showpic" src="{{d.img_url}}"/>
</script>

<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
</script>

<style>
.showpic{width:150px;height:90px;}
.layui-table-cell{height:auto;}
</style>